<?php
include_once("../../includes/config.inc.php");
check_login();
$suserSession=get_suser();
$customer_id=$suserSession['id'];
$commonModel=new Model_Subtable('info_common');
//删除‘文字’
if($_REQUEST['a']=='del_text'){
    if($_GET['id']) $commonModel->del($_GET['id']);
    die;
}
//删除‘多图文’
if($_REQUEST['a']=='del_multi'){
    if($_GET['id']){
        $commonModel->del($_GET['id']);
        $commonDetailModel=new Model_Subtable('info_common_detail');
        $commonDetailModel->delete(" info_common_id = '".$_GET['id']."' ");
    }
    die;
}